<?php slot('title') ?>
    <?php echo $portal->getTitle().' - '.$section->getTitle().' - '.$content['title'] ?>
<?php end_slot() ?>

<?php if($content['thumbBig']): ?>
    <?php slot('thumbnail')?>
        <link rel="image_src" type="image/jpeg" href="<?php echo $content['thumbBig'] ?>" />
    <?php end_slot() ?>
<?php elseif($content['thumbSmall']): ?>
    <?php slot('thumbnail')?>
        <link rel="image_src" type="image/jpeg" href="<?php echo $content['thumbSmall'] ?>"/>
    <?php end_slot() ?>
<?php elseif($portal->getImage()): ?>
    <?php slot('thumbnail')?>
        <link rel="image_src" type="image/jpeg" href="<?php echo $content['thumbSmall'] ?>"/>
    <?php end_slot() ?>
<?php endif; ?>

<?php if($section->getUsesHeader()):?>
    <div id="header">
        <?php for($i = 1; $i <= count($headerObjects); $i++):?>
            <?php if(isset ($headerObjects[$i])) : ?>
                <div id="<?php echo 'header'.$headerObjects[$i]->getType()->getType()?>">
                    <?php include_partial('render'.$headerObjects[$i]->getType()->getType(),
                            array(
                                strtolower($headerObjects[$i]->getType()->getType()) => $headerObjects[$i],
                                'portal' => $portal,
                                'hasBigScreen' => $hasBigScreen
                            )) ?>
                </div>
            <?php endif; ?>
        <?php endfor;?>
    </div>
<?php endif;?>
<div id="mainContent">
    <div class="content">
        <?php include_partial('render'.$section->getContentType().'External',
            array(
                'content' => $content,
                'section' => $section,
                'portal' => $portal,
                'hasBigScreen' => $hasBigScreen
            ))?>
        <?php if($portal->getUsesServButtons() && false): ?>
            <?php include_partial('renderServiceButtons',
                    array(
                        'portal'=>$portal,
                        'content' => $content,
                        'hasBigScreen' => $hasBigScreen
                    ))?>
        <?php endif; ?>
    </div>
</div>
<?php if($section->getUsesFooter()):?>
    <div id="footer">
        <?php if($portal->getFooter()->getUsesBreadcrumb()): ?>
            <?php include_partial('breadcrumbs', array('portal' => $portal, 'section' => $section, 'content' => $content))?>
        <?php endif; ?>
        <?php for($i = 1; $i <= count($footerObjects); $i++):?>
            <div id="<?php echo 'footer'.$footerObjects[$i]->getType()->getType()?>">
                <?php include_partial('render'.$footerObjects[$i]->getType()->getType(),
                        array(
                            strtolower($footerObjects[$i]->getType()->getType()) => $footerObjects[$i],
                            'portal' => $portal,
                            'hasBigScreen' => $hasBigScreen
                        ))?>
            </div>
        <?php endfor;?>
        <p>
            <?php echo html_entity_decode($portal->getFooter()->getHtml())?>
        </p>
        <p class="copyrights">
            <a href="<?php echo url_for('render_homesection',$portal)?>">
                <?php echo $portal?>
            </a> es desarrollado por
            <a href="http://www.equilibrio.net.ve">
                Equilibrio Agencia Digital
            </a>
        </p>
    </div>
<?php endif;?>

